<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mesog/ogprocess/Ogprocesses.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mesog/ogprocess/Ogprocesses.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'Ps_Id',
                footer: "Foots",
                cnName: '工序',
                name: 'ogprocess/Ogprocesses',
                url: "/Ogprocesses/",
                sortName: " Ps_Id"
            });
            const editFormFields = ref({"Ps_Name":"","Ps_No":"","Ps_Type":"","Og_Id":"","Ps_stare":"","Ps_DateTiem":"","O_id":"","Pro_id":""});
            const editFormOptions = ref([[{"title":"工序名称","field":"Ps_Name"},
                               {"title":"工序编码","field":"Ps_No"}],
                              [{"title":"工序类型","field":"Ps_Type","type":"number"},
                               {"title":"外协Id","field":"Og_Id","type":"number"}],
                              [{"title":"工序状态","field":"Ps_stare","type":"number"},
                               {"title":"创建时间","field":"Ps_DateTiem"}],
                              [{"title":"订单Id","field":"O_id","type":"number"},
                               {"title":"产品Id","field":"Pro_id","type":"number"}]]);
            const searchFormFields = ref({"Ps_Name":"","Ps_No":"","Ps_stare":""});
            const searchFormOptions = ref([[{"title":"工序名称","field":"Ps_Name","type":"like"},{"title":"工序编码","field":"Ps_No"},{"title":"工序状态","field":"Ps_stare","type":"text"}]]);
            const columns = ref([{field:'Ps_Name',title:'工序名称',type:'string',width:260,align:'left',sort:true},
                       {field:'Ps_No',title:'工序编码',type:'string',width:260,align:'left'},
                       {field:'Ps_Type',title:'工序类型',type:'int',width:260,align:'left'},
                       {field:'Og_Id',title:'外协Id',type:'int',width:260,hidden:true,align:'left'},
                       {field:'Ps_stare',title:'工序状态',type:'int',width:260,align:'left'},
                       {field:'Ps_DateTiem',title:'创建时间',type:'datetime',width:260,align:'left',sort:true},
                       {field:'O_id',title:'订单Id',type:'int',width:260,hidden:true,align:'left'},
                       {field:'Pro_id',title:'产品Id',type:'int',width:260,hidden:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
